package cn.edu.sdjzu.xg.eagle.dao;

import cn.edu.sdjzu.xg.eagle.entity.Pagination;
import cn.edu.sdjzu.xg.eagle.entity.Teacher;
import cn.edu.sdjzu.xg.eagle.exception.BysjException;
import cn.edu.sdjzu.xg.eagle.util.Condition;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

public interface TeacherDaoInterface {
    Teacher find(Long id) throws SQLException;
    boolean add(Connection connection,Teacher teacher) throws SQLException;
    boolean delete(Connection connection,Long id) throws SQLException;
    Collection<Teacher> findAll(Connection connectionm, List<Condition> conditionList) throws SQLException, BysjException;
    Collection<Teacher> findAll(Connection connectionm, List<Condition> conditionList, Pagination pagination) throws SQLException, BysjException;
}
